Open Office - Unsatisfied Link Error


2008-06-09 Digg! icurtain Delcious icurtain
when running open office from a bootstrap routine or in headless mode for batch processing make sure the following settings to avoid an unsatisfied link error soffice -accept="pipe,name=my_app;urp;" java -Djava.library.path=/opt/openoffice.org/program java.app.class useful reference on...

java - find a number in a string


2008-05-07 Digg! icurtain Delcious icurtain
Pattern p = Pattern.compile("[0-9]"); Matcher m = p.matcher("asdas12dsad"); System.out.println(m.find());...

http://kb.mozillazine.org/Browser.cache.disk_cache_ssl


2008-04-18 Digg! icurtain Delcious icurtain
http://kb.mozillazine.org/Browser.cache.disk_cache_ssl...

EJB3 EntityManager Find


2008-03-06 Digg! icurtain Delcious icurtain
@In("myEntityManager") private EntityManager em; ... MyObject myObject = em.find(MyObject.class, myObjectPrimaryKey);...

java.sql.SQLException: User not found: SA [SOLVED]


2008-03-05 Digg! icurtain Delcious icurtain
WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=Hypersonic,database=localDB java.sql.SQLException: User not found: SA It's possible that your jboss deployment has gone a bit squiffy.. try deleting the following: jboss/server/default/tmp jboss/server/default/da...

Exception creating identity: domainName


2008-02-13 Digg! icurtain Delcious icurtain
caused by: java.lang.RuntimeException: Exception creating identity: domainName Solution your computer can't find itself go to: etc/hosts make sure the loopback address refers to the name of the box you are running on ie 127.0.0.1 documentationServerBox localhost.localdomain loc...

SecPay Enumerated Type


2007-12-07 Digg! icurtain Delcious icurtain
public enum SecpayErrorType { authorised ("Transaction authorised by bank. auth_code available as bank reference"), notAuthorised ("Transaction not authorised. Failure message text available to merchant"), commsProblem ("Communication problem. Trying again later may well work"), fraud...

Tag Library Descriptor - TLD files for Java Editors


2007-12-04 Digg! icurtain Delcious icurtain
xmlns:s="http://jboss.com/products/seam/taglib" seam-ui.tld xmlns:ui="http://java.sun.com/jsf/facelets" jsf-ui.tld xmlns:f="http://java.sun.com/jsf/core" myfaces_core.tld xmlns:h="http://java.sun.com/jsf/html" myfaces_html.tld xmlns:rich="http://richfaces.ajax4jsf.org/rich" ri...

Java For Loop


2007-12-03 Digg! icurtain Delcious icurtain
for (OrderTransaction orderTransaction : secPayResultList) { for(Payment payment : orderTransaction.getPayments()){ if(PaymentMethodType.CARD.equals(payment.getMemberPaymentMethod().getPaymentMethod().getType())){...

Midas-Iflow CVS


2007-11-22 Digg! icurtain Delcious icurtain
Check out as a project configure using the new project wizard _> Head -> java -> java project iFlow libs - add all order & export - select all Midas projects - add iflow...

Tomcat Installation and Setup on Windows - msvcr71.dll


2007-09-13 Digg! icurtain Delcious icurtain
make sure the file msvcr71.dll is present in the system path    intall java jre  install tomcat    copy the deployment directory onto the local drive    edit:    ..\Apache Software Foundation\Tomcat 6.0\conf\server.xml    to include the deployment path to the application    this looks l...

Tomcat prunsrv.c javajni.c [error] - Service Error


2007-09-13 Digg! icurtain Delcious icurtain
When tomcat generates something similar to the following log output chances are its missing the Windows C dll MSVCR71.dll - Tomcat needs this to initialise java when the service starts. Put a copy in your c:\windows\system32 directory or wherever you want as long as its in your system path [200...

Copy a file in Java


2007-09-12 Digg! icurtain Delcious icurtain
public static void copyFile(String sourceFile, String filePath, String destinationFile) { try { FileInputStream streamSource = new FileInputStream(sourceFile); FileOutputStream streamDest = new FileOutputStream(filePath + destinationFile); byte[] buffer = new...

Simple Regex replace in java and Striptags


2007-08-20 Digg! icurtain Delcious icurtain
replacing two chars using an or (pipes) String p = "text to search.. through with = and , and ^regex"; System.out.println("result: "+ p.replaceAll(",|=", "") ); if you want to strip all the tags out you can use: System.out.println("p: "+ p.replaceAll("\\W", " ") ); note.. that will strip spaces...